﻿using System;
using UnityEngine;

namespace UnityStandardAssets.ImageEffects
{
	// Token: 0x020004AB RID: 1195
	[ExecuteInEditMode]
	[AddComponentMenu("Image Effects/Color Adjustments/Grayscale")]
	public class Grayscale : ImageEffectBase
	{
		// Token: 0x060018B1 RID: 6321 RVA: 0x0006EE3A File Offset: 0x0006D23A
		private void OnRenderImage(RenderTexture source, RenderTexture destination)
		{
			base.material.SetTexture("_RampTex", this.textureRamp);
			base.material.SetFloat("_RampOffset", this.rampOffset);
			Graphics.Blit(source, destination, base.material);
		}

		// Token: 0x04000F3D RID: 3901
		public Texture textureRamp;

		// Token: 0x04000F3E RID: 3902
		[Range(-1f, 1f)]
		public float rampOffset;
	}
}
